﻿import React, { createContext, useState } from 'react';

export const AppStateContext = createContext();

export const AppStateProvider = ({ children }) => {
  const [plateNum, setPlateNum] = useState('');
  const [faceList, setFaceList] = useState([]);

  return (
    <AppStateContext.Provider value={{ plateNum, setPlateNum, faceList, setFaceList}}>
      {children}
    </AppStateContext.Provider>
  );
};